package com.glorysoft.tonglingxjpda.ui.function.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.glorysoft.tonglingxjpda.R
import com.glorysoft.tonglingxjpda.base.DataBindBaseViewHolder
import com.glorysoft.tonglingxjpda.databinding.ItemDataCollectionDescBinding
import com.glorysoft.tonglingxjpda.databinding.ItemDataCollectionTitleBinding
import com.glorysoft.tonglingxjpda.entity.EdcSetBinLineValueListEntity
import com.glorysoft.tonglingxjpda.entity.TempDataEntity

/**
 * FileName: DataCollectionAdapter
 * Author: XJH
 * Date: 2022/5/6 17:43
 * Description:
 * History:
 */
class DataCollectionDescAdapter(data: List<EdcSetBinLineValueListEntity>) :
    BaseQuickAdapter<EdcSetBinLineValueListEntity, DataBindBaseViewHolder>(
        R.layout.item_data_collection_desc, data
    ) {


    override fun convert(helper: DataBindBaseViewHolder, item: EdcSetBinLineValueListEntity) {
        val mBinding = helper.getDataBinding() as ItemDataCollectionDescBinding
        mBinding.dataDescItem = item
        mBinding.executePendingBindings()
    }
}